"""
進入爱逛卖家版
"""
import time

import yaml
from uiautomator2 import xpath

from page_object.base_page import BasePage
from page_object.guang_page import GuangPage
from page_object.person_detail_page import PersonDetailPage
from page_object.setting_page import SettingPage
from resource.path_info import *

"""
【我的】页面
"""
class PersonalPage(GuangPage):

    """
    进入设置页面
    """
    def intoSettingPage(self, d):
        print("intoSettingPage")
        d.xpath(setting_xpath).wait(timeout = 2.0)
        if d.xpath(setting_xpath).exists:
            d.xpath(setting_xpath).click()
        return SettingPage()

    """
    进入个人信息
    """

    def intoPersonDetailPage(self, d):
        print("intoPersonDetailPage")
        d.xpath(person_detail_xpath).click()
        return PersonDetailPage()

    def returnPersonDetailPage(self, d):
        print("returnPersonDetailPage")
        return PersonDetailPage()

